package cn.edu.neusoft.practice.Controller;

import io.swagger.annotations.Api;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import cn.edu.neusoft.practice.mapper.natdepartmentMapper;
import cn.edu.neusoft.practice.po.natdepartment;



@CrossOrigin
@Api("natdepartmentController相关的api")
@Controller
public class natdepartmentController {
	@Autowired
	  private natdepartmentMapper natdepartmentMapper;
	  @RequestMapping("/getAllnatdepartments")
	  @ResponseBody
	  public List<natdepartment> getAllnatdepartments(){
	    
	    return natdepartmentMapper.selectList(null);
	  }
}